<div class='tour_contact'>
	<div class='title_2 cufon' style='width:280px;margin-bottom:15px;'>Đường dây nóng</div>
    <?= get_page('tour_contact')?>
</div>
<div class='tour_most_view'>
<div class='title_2 cufon' style='width:280px;margin-bottom:15px;'>
    Tours xem nhiều nhất
</div>
<?
$cnt = 0;
$picture = new Picture();
if ($category) {
	$tours = $category->getAllToursInCategory();
}else {
	$tours = Tour::getAllTours(1, " views_count DESC ");
}
foreach($tours as $tour)
{
    $cnt ++;
    $picture->select($tour->getthm_picture());
	$currency = $tour->getCurrencyObj();
?>
    <div class='tour_most_view_item'>
    	<div style='display:inline-block;float:left;position:relative;margin-right:10px;'>
	        <a href="/tour-chi-tiet/<?=$tour->getid()?>/<?=lg_string::get_link($tour->getname())?>"><img width='150' height='108' src='<?=($picture)?($picture->getPath('tour_price_')):""?>' align="left" /></a>
            <?
			if ($tour->getpromotion() > 0)
			{
				echo "<div class='promotion'>".$tour->getpromotion()."<br />%</div>";
			}
			?>
        </div>
        <span>
            <div style='padding-bottom:3px;'>
                <a class='tour_most_view_title tour_title' href='/tour-chi-tiet/<?=$tour->getid()?>/<?=lg_string::get_link($tour->getname())?>'>
                    <?=$tour->getname()?>
                </a>
            </div>
            <div style='line-height:15px;'>
            	<div style='color:#c00;'><b><?=lg_number::money($currency->getVND($tour->getRealPrice()));?> VNĐ</b></div>
                <?
				if ($tour->gettour_type() == "NORMAL")
				{
				?>
                <b>Ngày đi : <span style='color:#186BBC;'><?=lg_date::dmy2ymd($tour->getstart_date())?></span></b><br />
                <b>Ngày đến : <span style='color:#186BBC;'><?=lg_date::dmy2ymd($tour->getend_date())?></span></b><br />
                <?
				}
				?>
                <b>Số ngày : <span style='color:#186BBC;'><?=($tour->getnumber_day())?></span> - Số đêm : <span style='color:#186BBC;'><?=$tour->getnumber_night()?></span> </b> <br />
                <?
				if ($tour->getDeparture())
				{
				?>
                <b>Khởi hành : <span style='color:#186BBC;'><?=($tour->getDeparture()->getname())?></span></b><br />
                <b>Điểm đến : <span style='color:#186BBC;'><?=$tour->getDestination()->getname()?></span></b><br />
                <?
				}
				?>
            </div>
            <div style='clear:both'></div>
        </span>
    </div>
<?
	if ($cnt >= 10) break;
}
?>
</div>